
import { Base } from '../utils/base.js';

class OrderRank extends Base {
    constructor() {
        super();
    }

    /**
     * 获取下级订单量排行
     */
    getOrderList(callBack) {
        var params = {
            url: 'order-rank',
            sCallBack: function (res) {
                callBack && callBack(res);
            }
        }
        this.request(params);
    }

    getTeamOrderList(user_id,callBack){
        var params = {
            url: 'order-rank/team?user_id='+user_id,
            sCallBack: function (res) {
                callBack && callBack(res);
            }
        }
        this.request(params);
    }
}

export { OrderRank };
